@model IEnumerable<OurWedding1.Models.HomePageParagraph>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>Name
        </th>
        <th>Position
        </th>
        <th>Content
        </th>
        <th>IsPublished
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.HomePageParagraphId }) |
            @Html.ActionLink("Details", "Details", new { id = item.HomePageParagraphId }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.HomePageParagraphId })
            </td>
            <td>
                @Html.DisplayFor(model => item.Name)
            </td>
            <td>
                @Html.DisplayFor(model => item.Position)
            </td>
            <td>
                @Html.DisplayFor(model => item.Content)
            </td>
            <td>
                @Html.DisplayFor(model => item.IsPublished)
            </td>
        </tr>
    }

</table>


